package com.starwish.starwishblog.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.List;

@JsonIgnoreProperties(value = "handler")
public class RoleVo {

    private Integer id;

    private String name;

    private List<String> permissionNames;

    private List<Integer> checkedIds;

    public List<Integer> getCheckedIds() {
        return checkedIds;
    }

    public void setCheckedIds(List<Integer> checkedIds) {
        this.checkedIds = checkedIds;
    }

    public RoleVo() {
    }

    public RoleVo(Integer id, String name, List<String> permissionNames) {
        this.id = id;
        this.name = name;
        this.permissionNames = permissionNames;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getPermissionNames() {
        return permissionNames;
    }

    public void setPermissionNames(List<String> permissionNames) {
        this.permissionNames = permissionNames;
    }

    @Override
    public String toString() {
        return "RoleVo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", permissionNames=" + permissionNames +
                '}';
    }
}
